Range

Function

This API is used to get parameter range for Record > Playback Page page.

Request Message

None.

Sample:

POST API/Playback/PlaybackPage/Range HTTP/1.1
{
	"version": "1.0"
}

Response Message

Parameter Description

Table 1

ParameterRangeTypeDescription
FaceAttendancejson objectShow as followTable2
NormalJson objectShow as followTable3
PictureJson objectShow as followTable3
HumanVehicleJson objectShow as followTable3
PidLcdJson objectShow as followTable3
supportFaceAttrJson objectAI playback page with face attributes of the control.
param_limitJson objectShow as followTable3

Table 2

ParameterRangeTypeDescription
off_duty_timestringThe time format is “hh:mm:ss”
on_duty_timestringThe time format is “hh:mm:ss”
working_days"Sun",
"Mon",
"Tue",
"Wed",
"Thu",
"Fri",
"Sat"
string arrayworkday

Table 3

ParameterRangeTypeDescription
display_mode“Treelike”,
“Checkbox”
intUI display type
default_sort_of_resultsintSearch information in default or reverse order.
itemsintShow as followTable4
similarity_faceintControl the range and default value of the IE playback Face Detection similarity input box.
similarity_customerintControl the Fault-tolerant input field and the default value of the IE playback License Plate.
similarity_licenseintThe range and default value of the similarity input box controlling the IE playback of Repeat customer.

Table 4

ParameterRangeTypeDescription
record_typeJson objectPlayback Type
Show as followTable5
stream_mode“Mainstream”,
“Substream”
stringPrimary substream type (Normal only has this field)

Table 5

ParameterRangeTypeDescription
normalboolnormal
manualboolmanual
alarmJson objectShow as followTable6 (For IPC only)
smartJson objectShow as followTable7 (For IPC only)
HumanboolAI Human (For NVR only)
VehicleboolAI Vehicle (For NVR only)
IOboolIO alarm record type (For NVR only)
motionboolMotion alarm record type (For NVR only)
PIRboolPir (For NVR only)
SoundboolAudible alarm (For NVR only)
occulusionboolLens blocked (For NVR only)
Intelligentboolintelligent analysis (For NVR only)
PIDboolAI perimeter intrusion (For NVR only)
LCDboolAI Overline detection (For NVR only)
faceAttrboolFace attribute (For NVR only)

Table 6

ParameterRangeTypeDescription
IOJson objectIO alarm record type
motionJson objectMotion alarm record type
PIRJson objectPir
SoundJson objectAudible alarm
NetbreakJson objectdisconnected record

Table 7

ParameterRangeTypeDescription
PIDbool
LCDbool
SODbool
PDbool
FDbool
CCbool
intrusionbool
regionEntrancebool
regionExitingbool

Tips:

The response message of the Range request may not contain all the fields in the above table, and the fields not included indicate that the device does not support this parameter configuration.

Sample:

HTTP/1.1 200 OK
Content-Type: application/json
{
	"version": "1.0",
	"result": "success",
	"data": {
		"Normal": {
			"type": "object",
			"items": {
				"record_type": {
					"type": "object",
					"items": {
						"normal": {
							"type": "bool"
						},
						"event": {
							"type": "object",
							"items": {
								"manual": {
									"type": "bool"
								},
								"IO": {
									"type": "bool"
								},
								"motion": {
									"type": "bool"
								},
								"Sound": {
									"type": "bool"
								},
								"occulusion": {
									"type": "bool"
								}
							}
						},
						"ai": {
							"type": "object",
							"items": {
								"fd": {
									"type": "bool"
								},
								"pd&vd": {
									"type": "bool"
								},
								"pid": {
									"type": "bool"
								},
								"lcd": {
									"type": "bool"
								},
								"sod": {
									"type": "bool"
								},
								"cc": {
									"type": "bool"
								},
								"cd": {
									"type": "bool"
								},
								"qd": {
									"type": "bool"
								},
								"intrusion": {
									"type": "bool"
								},
								"regionEntrance": {
									"type": "bool"
								},
								"regionExiting": {
									"type": "bool"
								},
								"lpd": {
									"type": "bool"
								},
								"rsd": {
									"type": "bool"
								},
								"thermal": {
									"type": "bool"
								},
								"faceAttr": {
									"type": "bool"
								}
							}
						}
					}
				},
				"stream_mode": {
					"type": "string",
					"mode": "r",
					"items": [
						"Mainstream",
						"Substream"
					],
					"default_value": "Substream"
				}
			},
			"display_mode": "Treelike",
			"recordColorArr": [
				{
					"normal": 1
				},
				{
					"motion": 4
				},
				{
					"IO": 8
				},
				{
					"PIR": 65536
				},
				{
					"ai": 128
				},
				{
					"alarm": 2
				},
				{
					"manual": 16384
				}
			]
		},
		"Smart": {
			"type": "object",
			"items": {
				"record_type": {
					"type": "object",
					"items": {
						"normal": {
							"type": "bool"
						},
						"event": {
							"type": "object",
							"items": {
								"manual": {
									"type": "bool"
								},
								"IO": {
									"type": "bool"
								},
								"motion": {
									"type": "bool"
								},
								"Sound": {
									"type": "bool"
								},
								"occulusion": {
									"type": "bool"
								}
							}
						},
						"ai": {
							"type": "object",
							"items": {
								"fd": {
									"type": "bool"
								},
								"pd&vd": {
									"type": "bool"
								},
								"pid": {
									"type": "bool"
								},
								"lcd": {
									"type": "bool"
								},
								"sod": {
									"type": "bool"
								},
								"cc": {
									"type": "bool"
								},
								"cd": {
									"type": "bool"
								},
								"qd": {
									"type": "bool"
								},
								"intrusion": {
									"type": "bool"
								},
								"regionEntrance": {
									"type": "bool"
								},
								"regionExiting": {
									"type": "bool"
								},
								"lpd": {
									"type": "bool"
								},
								"rsd": {
									"type": "bool"
								},
								"thermal": {
									"type": "bool"
								},
								"faceAttr": {
									"type": "bool"
								}
							}
						}
					}
				},
				"stream_mode": {
					"type": "string",
					"items": [
						"Mainstream",
						"Substream"
					]
				}
			},
			"display_mode": "Treelike"
		},
		"Picture": {
			"type": "object",
			"items": {
				"record_type": {
					"type": "object",
					"items": {
						"normal": {
							"type": "bool"
						},
						"event": {
							"type": "object",
							"items": {
								"manual": {
									"type": "bool"
								},
								"motion": {
									"type": "bool"
								},
								"IO": {
									"type": "bool"
								},
								"PIR": {
									"type": "bool"
								}
							}
						}
					}
				}
			},
			"display_mode": "Treelike",
			"default_sort_of_results": 0
		},
		"HumanVehicle": {
			"type": "object",
			"items": {
				"record_type": {
					"type": "object",
					"items": {
						"Human": {
							"type": "bool"
						},
						"Vehicle": {
							"type": "bool"
						},
						"Non-Vehicle": {
							"type": "bool"
						}
					}
				}
			},
			"display_mode": "Checkbox"
		},
		"PidLcd": {
			"type": "object",
			"items": {
				"record_type": {
					"type": "object",
					"items": {
						"pid": {
							"type": "bool"
						},
						"lcd": {
							"type": "bool"
						}
					}
				}
			},
			"display_mode": "Checkbox"
		},
		"LicensePlate": {
			"type": "object",
			"items": {
				"plate_keys": {
					"type": "string",
					"min_len": 1,
					"max_len": 16
				},
				"max_error_char": {
					"type": "int32",
					"min": 0,
					"max": 5,
					"default_value": 3
				}
			}
		},
		"supportFaceAttr": true,
		"FaceAttendance": {
			"working_days": [
				"Mon.",
				"Tue.",
				"Wed.",
				"Thu.",
				"Fri."
			],
			"on_duty_time": "08:30:00",
			"off_duty_time": "17:30:00"
		},
		"param_limit": {
			"type": "object",
			"items": {
				"similarity_face": {
					"type": "int32",
					"mode": "rw",
					"min": 0,
					"max": 100,
					"default_value": 70
				},
				"similarity_customer": {
					"type": "int32",
					"mode": "rw",
					"min": 0,
					"max": 100,
					"default_value": 50
				},
				"similarity_license": {
					"type": "int32",
					"mode": "rw",
					"min": 0,
					"max": 5,
					"default_value": 3
				}
			}
		}
	}
}

Error Code

See Response Messages Body and Common error_code for more information.